<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/user_jdc.css">
        <script src="${pageContext.request.contextPath}/js/userjdc.js"></script>
        <div class="main">
            <h1>用户权限管理</h1>
            <form id="search" action="" method="post">
                <div class="search">
                    <input id="doc_name" name="doc_name" type="text" class="input" placeholder="${query_tip}"
                        autocomplete="off"><input type="submit" value="搜索" class="button" onclick="search_user()">
                </div>
            </form>
        </div>
        <div class="table_usrjdc">
            <table>
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>年龄</th>
                        <th>职称</th>
                        <th>科室</th>
                        <th>电话</th>
                        <th>管理</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${users}" var="user" varStatus="stat">
                        <tr>
                            <td>${stat.index+1}</td>
                            <td>${user.doc_name}</td>
                            <td>${user.doc_sex}</td>
                            <td>${user.doc_age}</td>
                            <td>${user.doc_title}</td>
                            <td>${user.doc_department}</td>
                            <td>${user.doc_tel}</td>
                            <td>
                                <input type="button" value="删除" onclick="delete_user('${user.id}')">
                                <input type="button" value="修改"
                                    onclick="javascript:window.location='userJdc.action?action=modify&id=${user.id}'">
                                <input type="button" value="重置" onclick="reset_user('${user.id}')">
                            </td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>